Skip to content

Support alternative file extensions#1231

Merged
dcodeIO merged 3 commits into
masterfrom
extension
Apr 26, 2020
Merged

Support alternative file extensions#1231
dcodeIO merged 3 commits into
masterfrom
extension

Conversation

@dcodeIO

@dcodeIO dcodeIO commented Apr 17, 2020

Copy link
Copy Markdown
Member

This PR enables experimenting with alternative file extensions, by making the default extension overridable in asc, using the (temporary) --extension option. While this works, there are various follow-up issues obviously that need to be addressed eventually, like allowing multiple file extensions to be valid if one imports a foreign module's sources directly that are using .ts, but I guess this can wait until we know more (stdlib is extension agnostic).

Related: #1003, https://github.com/AssemblyScript/meta/issues/32

@jtenner

jtenner commented Apr 17, 2020

Copy link
Copy Markdown
Contributor

I don't suppose we could do something like --allow-extensions ts,asc instead, with the default being ["ts"]?

@dcodeIO

dcodeIO commented Apr 17, 2020

Copy link
Copy Markdown
Member Author

That's what I meant with additional work being necessary, but needs some refactoring around asc. For now this just enables experimenting with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants